#! /bin/bash
gnuplot << EOF
set ylabel "Execution Time(ms)"
set style data histogram
set yrange [0:] 
set style histogram cluster gap 1
set terminal postscript enhanced 25
set key left Left reverse
set output "$1.ps"
plot "$1" using 2:xtic("Sort Time Breakdown") title col  lc rgb "red" fs pattern 1,\
	"$1" using 3:xtic("Sort Time Breakdown") title col  lc rgb "blue" fs pattern 2 ,\
	"$1" using 4:xtic("Sort Time Breakdown") title col  lc rgb "purple" fs pattern 3,\
	"$1" using 5:xtic("Sort Time Breakdown") title col  lc rgb "black" fs pattern 4,\
	"$1" using 6:xtic("Sort Time Breakdown") title col  lc rgb "green" fs pattern 5,\
	"$1" using 7:xtic("Sort Time Breakdown") title col  lc rgb "brown" fs pattern 6
EOF
